<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人中心 - Surreal Gallery 超现实主义数字藏品平台</title>
    <!-- 引入Font Awesome 6.4.0图标库 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* 继承首页样式变量 */
        :root {
            --primary: #6a11cb;
            --secondary: #2575fc;
            --accent: #ff2e63;
            --dark: #1a1a2e;
            --light: #f0f0f0;
            --surreal-purple: #8a2be2;
            --surreal-blue: #00b4d8;
            --surreal-pink: #ff6b6b;
            --surreal-yellow: #f9d423;
            --surreal-green: #2ecc71;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
            color: var(--light);
            overflow-x: hidden;
            min-height: 100vh;
        }

        /* 超现实主义背景元素 */
        .floating-elements {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .floating-element {
            position: absolute;
            border-radius: 50%;
            opacity: 0.1;
            filter: blur(40px);
            animation: float 15s infinite ease-in-out;
        }

        .floating-element:nth-child(1) {
            width: 300px;
            height: 300px;
            background: var(--surreal-purple);
            top: 10%;
            left: 5%;
            animation-delay: 0s;
        }

        .floating-element:nth-child(2) {
            width: 200px;
            height: 200px;
            background: var(--surreal-blue);
            top: 60%;
            right: 10%;
            animation-delay: 3s;
        }

        .floating-element:nth-child(3) {
            width: 250px;
            height: 250px;
            background: var(--surreal-pink);
            bottom: 10%;
            left: 20%;
            animation-delay: 6s;
        }

        @keyframes float {

            0%,
            100% {
                transform: translateY(0) rotate(0deg);
            }

            50% {
                transform: translateY(-20px) rotate(180deg);
            }
        }

        /* 导航栏 */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 5%;
            position: fixed;
            width: 100%;
            z-index: 1000;
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .logo {
            font-size: 28px;
            font-weight: 700;
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
        }

        nav ul {
            display: flex;
            list-style: none;
        }

        nav ul li {
            margin-left: 30px;
        }

        nav ul li a {
            color: var(--light);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        nav ul li a:hover {
            color: var(--surreal-pink);
        }

        nav ul li a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue));
            transition: width 0.3s ease;
        }

        nav ul li a:hover::after {
            width: 100%;
        }

        .cta-button {
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue));
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(106, 17, 203, 0.6);
        }

        /* 页面标题区域 */
        .page-header {
            padding: 150px 5% 80px;
            text-align: center;
            position: relative;
        }

        .page-title {
            font-size: 3.5rem;
            margin-bottom: 20px;
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue), var(--surreal-pink));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            line-height: 1.2;
        }

        .page-subtitle {
            font-size: 1.2rem;
            max-width: 600px;
            margin: 0 auto;
            opacity: 0.8;
            line-height: 1.6;
        }

        /* 个人中心容器 */
        .profile-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 5% 100px;
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 40px;
        }

        /* 侧边栏 */
        .profile-sidebar {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .profile-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            padding: 25px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .profile-header {
            text-align: center;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 20px;
        }

        .profile-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue));
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: white;
            border: 4px solid #ffffff;
            position: relative;
        }

        .profile-verified {
            position: absolute;
            top: 10px;
            right: 10px;
            color: var(--surreal-green);
            font-size: 1.5rem;
            background: rgba(0, 0, 0, 0.7);
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .profile-name {
            font-size: 1.5rem;
            margin-bottom: 5px;
        }

        .profile-bio {
            opacity: 0.8;
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .profile-stats {
            display: flex;
            justify-content: space-around;
            margin: 20px 0;
        }

        .profile-stat {
            text-align: center;
        }

        .profile-stat-number {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--surreal-pink);
        }

        .profile-stat-label {
            font-size: 0.8rem;
            opacity: 0.7;
        }

        .profile-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .profile-action-btn {
            background: rgba(255, 255, 255, 0.05);
            border: none;
            color: var(--light);
            padding: 12px 15px;
            border-radius: 10px;
            text-align: left;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .profile-action-btn:hover {
            background: rgba(138, 43, 226, 0.2);
            transform: translateX(5px);
        }

        .profile-action-btn.active {
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue));
            color: white;
        }

        /* 主要内容区域 */
        .profile-content {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .content-section {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            padding: 30px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .section-title {
            font-size: 1.8rem;
            margin-bottom: 25px;
            color: var(--surreal-blue);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-title i {
            font-size: 1.5rem;
        }

        /* 个人信息表单 */
        .profile-form {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group.full-width {
            grid-column: 1 / -1;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .form-input {
            width: 100%;
            padding: 12px 15px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.05);
            color: var(--light);
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--surreal-purple);
            box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
        }

        .form-textarea {
            resize: vertical;
            min-height: 100px;
        }

        .save-button {
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue));
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
            grid-column: 1 / -1;
            justify-self: start;
        }

        .save-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(106, 17, 203, 0.6);
        }

        /* 藏品网格 */
        .collections-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
        }

        .collection-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .collection-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }

        .collection-image {
            width: 100%;
            height: 150px;
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            color: white;
            position: relative;
        }

        .collection-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 4px 8px;
            border-radius: 15px;
            font-size: 0.7rem;
            font-weight: 600;
        }

        .collection-content {
            padding: 15px;
        }

        .collection-title {
            font-size: 1.1rem;
            margin-bottom: 8px;
            line-height: 1.3;
        }

        .collection-price {
            font-weight: 700;
            color: var(--surreal-pink);
            margin-bottom: 10px;
        }

        .collection-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .view-button {
            background: rgba(255, 255, 255, 0.1);
            color: var(--light);
            border: none;
            padding: 6px 15px;
            border-radius: 15px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .view-button:hover {
            background: var(--surreal-purple);
        }

        /* 交易记录 */
        .transactions-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .transaction-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        .transaction-item:hover {
            background: rgba(255, 255, 255, 0.07);
        }

        .transaction-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: white;
            flex-shrink: 0;
        }

        .transaction-details {
            flex-grow: 1;
        }

        .transaction-title {
            font-size: 1rem;
            margin-bottom: 5px;
        }

        .transaction-date {
            font-size: 0.8rem;
            opacity: 0.7;
        }

        .transaction-amount {
            font-weight: 700;
            color: var(--surreal-green);
        }

        /* 关注艺术家 */
        .artists-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
        }

        .artist-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .artist-card:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.08);
        }

        .artist-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue));
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            color: white;
        }

        .artist-name {
            font-size: 1.1rem;
            margin-bottom: 5px;
        }

        .artist-followers {
            font-size: 0.8rem;
            opacity: 0.7;
            margin-bottom: 15px;
        }

        .unfollow-button {
            background: rgba(255, 255, 255, 0.1);
            color: var(--light);
            border: none;
            padding: 6px 15px;
            border-radius: 15px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
        }

        .unfollow-button:hover {
            background: var(--surreal-pink);
        }

        /* 安全设置 */
        .security-options {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .security-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 10px;
        }

        .security-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .security-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(138, 43, 226, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--surreal-purple);
            font-size: 1.2rem;
        }

        .security-details h4 {
            font-size: 1rem;
            margin-bottom: 5px;
        }

        .security-details p {
            font-size: 0.8rem;
            opacity: 0.7;
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.2);
            transition: .4s;
            border-radius: 24px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked+.slider {
            background-color: var(--surreal-purple);
        }

        input:checked+.slider:before {
            transform: translateX(26px);
        }

        /* 页脚 */
        footer {
            background: rgba(0, 0, 0, 0.5);
            padding: 50px 5% 20px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column h3 {
            font-size: 1.2rem;
            margin-bottom: 20px;
            color: var(--surreal-blue);
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 10px;
        }

        .footer-column ul li a {
            color: var(--light);
            text-decoration: none;
            opacity: 0.7;
            transition: all 0.3s ease;
        }

        .footer-column ul li a:hover {
            opacity: 1;
            color: var(--surreal-pink);
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-link {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .social-link:hover {
            background: var(--surreal-purple);
            transform: translateY(-3px);
        }

        .social-links a {
            text-decoration: none;
            color: #fff;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0.7;
        }

        /* 响应式设计 */
        @media (max-width: 968px) {
            .page-title {
                font-size: 2.8rem;
            }

            .profile-container {
                grid-template-columns: 1fr;
            }

            .profile-sidebar {
                order: 1;
            }

            .profile-content {
                order: 2;
            }

            .profile-form {
                grid-template-columns: 1fr;
            }

            .collections-grid,
            .artists-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
        }

        @media (max-width: 768px) {
            nav ul {
                display: none;
            }

            .page-header {
                padding: 130px 5% 60px;
            }

            .page-title {
                font-size: 2.2rem;
            }

            .profile-stats {
                flex-wrap: wrap;
                gap: 15px;
            }

            .collections-grid,
            .artists-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>

<body>
    <!-- 超现实主义背景元素 -->
    <div class="floating-elements">
        <div class="floating-element"></div>
        <div class="floating-element"></div>
        <div class="floating-element"></div>
    </div>

    <!-- 导航栏 -->
    <header>
        <div class="logo">Surreal Gallery</div>
        <nav>
            <ul>
                <li><a href="index.html">首页</a></li>
                <li><a href="collections.html">数字藏品</a></li>
                <li><a href="artists.html">艺术家</a></li>
                <li><a href="news.html">新闻动态</a></li>
                <li><a href="my-collections.html">我的藏品</a></li>
                <li><a href="profile.html" class="active">个人中心</a></li>
            </ul>
        </nav>
        <button class="cta-button">连接钱包</button>
    </header>

    <!-- 页面标题区域 -->
    <section class="page-header">
        <h1 class="page-title">个人中心</h1>
        <p class="page-subtitle">管理您的个人信息、收藏和账户设置</p>
    </section>

    <!-- 个人中心容器 -->
    <section class="profile-container">
        <!-- 侧边栏 -->
        <div class="profile-sidebar">
            <div class="profile-card">
                <div class="profile-header">
                    <div class="profile-avatar">
                        <div class="profile-verified"><i class="fas fa-check-circle"></i></div>
                        <i class="fas fa-user"></i>
                    </div>
                    <h2 class="profile-name">Dream Collector</h2>
                    <p class="profile-bio">超现实主义艺术爱好者，专注于收藏梦幻与现实交织的数字艺术品</p>
                </div>
                <div class="profile-stats">
                    <div class="profile-stat">
                        <div class="profile-stat-number">24</div>
                        <div class="profile-stat-label">藏品</div>
                    </div>
                    <div class="profile-stat">
                        <div class="profile-stat-number">15</div>
                        <div class="profile-stat-label">关注</div>
                    </div>
                    <div class="profile-stat">
                        <div class="profile-stat-number">2020</div>
                        <div class="profile-stat-label">加入</div>
                    </div>
                </div>
            </div>

            <div class="profile-card">
                <div class="profile-actions">
                    <button class="profile-action-btn active" data-tab="profile">
                        <i class="fas fa-user"></i> 个人信息
                    </button>
                    <button class="profile-action-btn" data-tab="collections">
                        <i class="fas fa-images"></i> 我的藏品
                    </button>
                    <button class="profile-action-btn" data-tab="transactions">
                        <i class="fas fa-receipt"></i> 交易记录
                    </button>
                    <button class="profile-action-btn" data-tab="following">
                        <i class="fas fa-user-friends"></i> 关注艺术家
                    </button>
                    <button class="profile-action-btn" data-tab="security">
                        <i class="fas fa-shield-alt"></i> 安全设置
                    </button>
                </div>
            </div>
        </div>

        <!-- 主要内容区域 -->
        <div class="profile-content">
            <!-- 个人信息部分 -->
            <div class="content-section" id="profile-section">
                <h2 class="section-title"><i class="fas fa-user"></i> 个人信息</h2>
                <form class="profile-form">
                    <div class="form-group">
                        <label class="form-label" for="username">用户名</label>
                        <input type="text" id="username" class="form-input" value="Dream Collector">
                    </div>
                    <div class="form-group">
                        <label class="form-label" for="email">电子邮箱</label>
                        <input type="email" id="email" class="form-input" value="dream.collector@example.com">
                    </div>
                    <div class="form-group">
                        <label class="form-label" for="wallet">钱包地址</label>
                        <input type="text" id="wallet" class="form-input" value="0x1a2b3c4d5e6f7g8h9i0j" readonly>
                    </div>
                    <div class="form-group">
                        <label class="form-label" for="location">所在地</label>
                        <input type="text" id="location" class="form-input" value="上海, 中国">
                    </div>
                    <div class="form-group full-width">
                        <label class="form-label" for="bio">个人简介</label>
                        <textarea id="bio"
                            class="form-input form-textarea">超现实主义艺术爱好者，专注于收藏梦幻与现实交织的数字艺术品。相信艺术是连接现实与梦境的桥梁。</textarea>
                    </div>
                    <button type="button" class="save-button">保存更改</button>
                </form>
            </div>

            <!-- 我的藏品部分 -->
            <div class="content-section" id="collections-section" style="display: none;">
                <h2 class="section-title"><i class="fas fa-images"></i> 我的藏品</h2>
                <div class="collections-grid">
                    <!-- 藏品将通过JavaScript动态生成 -->
                </div>
            </div>

            <!-- 交易记录部分 -->
            <div class="content-section" id="transactions-section" style="display: none;">
                <h2 class="section-title"><i class="fas fa-receipt"></i> 交易记录</h2>
                <div class="transactions-list">
                    <!-- 交易记录将通过JavaScript动态生成 -->
                </div>
            </div>

            <!-- 关注艺术家部分 -->
            <div class="content-section" id="following-section" style="display: none;">
                <h2 class="section-title"><i class="fas fa-user-friends"></i> 关注艺术家</h2>
                <div class="artists-grid">
                    <!-- 艺术家将通过JavaScript动态生成 -->
                </div>
            </div>

            <!-- 安全设置部分 -->
            <div class="content-section" id="security-section" style="display: none;">
                <h2 class="section-title"><i class="fas fa-shield-alt"></i> 安全设置</h2>
                <div class="security-options">
                    <div class="security-item">
                        <div class="security-info">
                            <div class="security-icon"><i class="fas fa-lock"></i></div>
                            <div class="security-details">
                                <h4>双重验证</h4>
                                <p>为您的账户添加额外的安全层</p>
                            </div>
                        </div>
                        <label class="toggle-switch">
                            <input type="checkbox" checked>
                            <span class="slider"></span>
                        </label>
                    </div>
                    <div class="security-item">
                        <div class="security-info">
                            <div class="security-icon"><i class="fas fa-bell"></i></div>
                            <div class="security-details">
                                <h4>登录通知</h4>
                                <p>在新设备登录时接收通知</p>
                            </div>
                        </div>
                        <label class="toggle-switch">
                            <input type="checkbox" checked>
                            <span class="slider"></span>
                        </label>
                    </div>
                    <div class="security-item">
                        <div class="security-info">
                            <div class="security-icon"><i class="fas fa-envelope"></i></div>
                            <div class="security-details">
                                <h4>邮件通知</h4>
                                <p>接收重要账户更新和安全通知</p>
                            </div>
                        </div>
                        <label class="toggle-switch">
                            <input type="checkbox">
                            <span class="slider"></span>
                        </label>
                    </div>
                    <div class="security-item">
                        <div class="security-info">
                            <div class="security-icon"><i class="fas fa-key"></i></div>
                            <div class="security-details">
                                <h4>更改密码</h4>
                                <p>定期更新您的账户密码</p>
                            </div>
                        </div>
                        <button class="view-button">更改</button>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 页脚 -->
    <footer>
        <div class="footer-content">
            <div class="footer-column">
                <h3>Surreal Gallery</h3>
                <p>探索超现实数字艺术的新维度，发现独一无二的数字藏品。</p>
                <div class="social-links">
                    <a href="#" class="social-link"><i class="fab fa-facebook-f"></i></a>
                    <a href="#" class="social-link"><i class="fab fa-twitter"></i></a>
                    <a href="#" class="social-link"><i class="fab fa-instagram"></i></a>
                    <a href="#" class="social-link"><i class="fab fa-weixin"></i></a>
                </div>
            </div>
            <div class="footer-column">
                <h3>快速链接</h3>
                <ul>
                    <li><a href="index.html">首页</a></li>
                    <li><a href="collections.html">数字藏品</a></li>
                    <li><a href="artists.html">艺术家</a></li>
                    <li><a href="news.html">新闻动态</a></li>
                </ul>
            </div>
            <div class="footer-column">
                <h3>支持</h3>
                <ul>
                    <li><a href="#"><i class="fas fa-question-circle"></i> 帮助中心</a></li>
                    <li><a href="#"><i class="fas fa-envelope"></i> 联系我们</a></li>
                    <li><a href="#"><i class="fas fa-users"></i> 社区指南</a></li>
                    <li><a href="#"><i class="fas fa-file-alt"></i> 服务条款</a></li>
                </ul>
            </div>
            <div class="footer-column">
                <h3>订阅更新</h3>
                <p>订阅我们的新闻通讯，获取最新藏品和活动信息。</p>
                <form>
                    <input type="email" placeholder="您的电子邮箱"
                        style="width: 100%; padding: 10px; margin: 10px 0; border-radius: 5px; border: none; background: rgba(255,255,255,0.1); color: white;">
                    <button type="submit" class="cta-button" style="width: 100%;">订阅</button>
                </form>
            </div>
        </div>
        <div class="copyright">
            <p>&copy; 2023 Surreal Gallery. 保留所有权利。</p>
        </div>
    </footer>

    <script>
        // 用户数据
        const userData = {
            username: "Dream Collector",
            email: "dream.collector@example.com",
            wallet: "0x1a2b3c4d5e6f7g8h9i0j",
            location: "上海, 中国",
            bio: "超现实主义艺术爱好者，专注于收藏梦幻与现实交织的数字艺术品。相信艺术是连接现实与梦境的桥梁。",
            collections: 24,
            following: 15,
            joinYear: 2020
        };

        // 用户藏品数据
        const userCollections = [
            {
                id: 1,
                title: "梦境独角兽",
                artist: "Luna Dreamer",
                price: 2.5,
                icon: "fa-horse-head",
                purchaseDate: "2023-05-15",
                badge: "限量版"
            },
            {
                id: 2,
                title: "时间之河",
                artist: "Salvador Reality",
                price: 1.8,
                icon: "fa-water",
                purchaseDate: "2023-04-22",
                badge: "热卖中"
            },
            {
                id: 3,
                title: "悬浮都市",
                artist: "Vera Mirage",
                price: 3.2,
                icon: "fa-building",
                purchaseDate: "2023-03-10",
                badge: "独家"
            },
            {
                id: 4,
                title: "星际之门",
                artist: "Fiona Dimension",
                price: 0.8,
                icon: "fa-star",
                purchaseDate: "2023-02-28",
                badge: "新上架"
            },
            {
                id: 5,
                title: "意识漩涡",
                artist: "Max Surreal",
                price: 4.5,
                icon: "fa-rotate",
                purchaseDate: "2023-01-15",
                badge: "拍卖中"
            },
            {
                id: 6,
                title: "量子花园",
                artist: "Eva Quantum",
                price: 2.1,
                icon: "fa-seedling",
                purchaseDate: "2022-12-05",
                badge: "限量版"
            }
        ];

        // 交易记录数据
        const transactions = [
            {
                id: 1,
                title: "购买 - 梦境独角兽",
                date: "2023-05-15",
                amount: 2.5,
                type: "purchase",
                icon: "fa-shopping-cart"
            },
            {
                id: 2,
                title: "出售 - 记忆碎片",
                date: "2023-04-30",
                amount: 1.2,
                type: "sale",
                icon: "fa-coins"
            },
            {
                id: 3,
                title: "购买 - 时间之河",
                date: "2023-04-22",
                amount: 1.8,
                type: "purchase",
                icon: "fa-shopping-cart"
            },
            {
                id: 4,
                title: "出价 - 意识漩涡",
                date: "2023-03-20",
                amount: 4.5,
                type: "bid",
                icon: "fa-gavel"
            },
            {
                id: 5,
                title: "购买 - 悬浮都市",
                date: "2023-03-10",
                amount: 3.2,
                type: "purchase",
                icon: "fa-shopping-cart"
            }
        ];

        // 关注艺术家数据
        const followingArtists = [
            {
                id: 1,
                name: "Luna Dreamer",
                followers: 12450,
                icon: "fa-moon"
            },
            {
                id: 2,
                name: "Salvador Reality",
                followers: 8920,
                icon: "fa-clock"
            },
            {
                id: 3,
                name: "Vera Mirage",
                followers: 15600,
                icon: "fa-city"
            },
            {
                id: 4,
                name: "Fiona Dimension",
                followers: 7200,
                icon: "fa-globe"
            },
            {
                id: 5,
                name: "Max Surreal",
                followers: 10300,
                icon: "fa-palette"
            },
            {
                id: 6,
                name: "Eva Quantum",
                followers: 9400,
                icon: "fa-atom"
            }
        ];

        // 页面加载完成后初始化
        document.addEventListener('DOMContentLoaded', function () {
            // 初始化侧边栏标签切换
            initTabSwitching();

            // 初始化用户藏品展示
            renderUserCollections();

            // 初始化交易记录
            renderTransactions();

            // 初始化关注艺术家
            renderFollowingArtists();
        });

        // 侧边栏标签切换功能
        function initTabSwitching() {
            const tabButtons = document.querySelectorAll('.profile-action-btn');
            const sections = document.querySelectorAll('.content-section');

            tabButtons.forEach(button => {
                button.addEventListener('click', function () {
                    const targetTab = this.getAttribute('data-tab');

                    // 更新按钮状态
                    tabButtons.forEach(btn => btn.classList.remove('active'));
                    this.classList.add('active');

                    // 显示对应部分
                    sections.forEach(section => {
                        section.style.display = 'none';
                    });

                    document.getElementById(`${targetTab}-section`).style.display = 'block';
                });
            });
        }

        // 渲染用户藏品
        function renderUserCollections() {
            const collectionsGrid = document.querySelector('.collections-grid');

            userCollections.forEach(collection => {
                const collectionCard = document.createElement('div');
                collectionCard.className = 'collection-card';
                collectionCard.innerHTML = `
                    <div class="collection-image">
                        <i class="fas ${collection.icon}"></i>
                        <span class="collection-badge">${collection.badge}</span>
                    </div>
                    <div class="collection-content">
                        <h3 class="collection-title">${collection.title}</h3>
                        <p class="collection-price">${collection.price} ETH</p>
                        <div class="collection-actions">
                            <span class="collection-date">${collection.purchaseDate}</span>
                            <button class="view-button">查看详情</button>
                        </div>
                    </div>
                `;

                collectionsGrid.appendChild(collectionCard);
            });
        }

        // 渲染交易记录
        function renderTransactions() {
            const transactionsList = document.querySelector('.transactions-list');

            transactions.forEach(transaction => {
                const transactionItem = document.createElement('div');
                transactionItem.className = 'transaction-item';

                // 根据交易类型设置金额颜色
                const amountColor = transaction.type === 'purchase' || transaction.type === 'bid'
                    ? 'var(--surreal-pink)'
                    : 'var(--surreal-green)';

                transactionItem.innerHTML = `
                    <div class="transaction-icon">
                        <i class="fas ${transaction.icon}"></i>
                    </div>
                    <div class="transaction-details">
                        <h3 class="transaction-title">${transaction.title}</h3>
                        <p class="transaction-date">${transaction.date}</p>
                    </div>
                    <div class="transaction-amount" style="color: ${amountColor}">
                        ${transaction.amount} ETH
                    </div>
                `;

                transactionsList.appendChild(transactionItem);
            });
        }

        // 渲染关注艺术家
        function renderFollowingArtists() {
            const artistsGrid = document.querySelector('.artists-grid');

            followingArtists.forEach(artist => {
                const artistCard = document.createElement('div');
                artistCard.className = 'artist-card';
                artistCard.innerHTML = `
                    <div class="artist-avatar">
                        <i class="fas ${artist.icon}"></i>
                    </div>
                    <h3 class="artist-name">${artist.name}</h3>
                    <p class="artist-followers">${artist.followers.toLocaleString()} 关注者</p>
                    <button class="unfollow-button">取消关注</button>
                `;

                artistsGrid.appendChild(artistCard);
            });
        }
    </script>
</body>

</html>